<h1>Listing languages</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Code</th>
    <th>Priority</th>
  </tr>

<% @languages.each do |language| %>
  <tr>
    <td><%=h language.name %></td>
    <td><%=h language.code %></td>
    <td><%=h language.priority %></td>
    <td><%= link_to 'Show', language %></td>
    <td><%= link_to 'Edit', edit_language_path(language) %></td>
    <td><%= link_to 'Destroy', language, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New language', new_language_path %>